package meconsea.life.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import meconsea.life.sys.entity.AbsEntity;
import meconsea.life.util.ComUtil;

import org.hibernate.annotations.Type;
@SuppressWarnings("serial")
@Entity
@Table(name="SYS_ADMIN_U_LOG")
@NamedQueries({
	@NamedQuery(name=AdminUserLog.FIND_USERID,query=" SELECT O from AdminUserLog O where O.userid=:userid")
})
public class AdminUserLog extends AbsEntity {
	public static final String FIND_USERID = "aul_find_userid";
	
	@Column(length=64)
	private String userid;
	
	@Column(name="loginfo",length = 10240000)
	@Type(type="text")
	private String loginfo;
	
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getLoginfo() {
		return loginfo;
	}
	public void setLoginfo(String loginfo) {
		this.loginfo = "("+ComUtil.getCurrTime()+")"+loginfo;
	}
}
